﻿@model IEnumerable<KpBusiness.Model.Position>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            PositionName
        </th>
        <th>
            Skills
        </th>
        <th>
            YearExpFrom
        </th>
        <th>
            YearExpTo
        </th>
        <th>
            Salary
        </th>
        <th>
            SalaryTo
        </th>
        <th>
            NumberOfPositions
        </th>
      
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.PositionName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Skills)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.YearExpFrom)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.YearExpTo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Salary)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SalaryTo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NumberOfPositions)
        </td>
       
      
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.PositionId }) |
            @Html.ActionLink("Details", "Details", new { id=item.PositionId })
        </td>
    </tr>
}

</table>
